import * as API from '../axios';

export default {

//下拉所有没有停止合作的店铺
getListBox: params => {
  return API.axiosGetAPI('/manage/branches/box', params);
},

//商家列表
merchantList: (url, params) => {
  return API.axiosGetAPI(url, params);
},
//调整金额
adjustMoney: params => {
  return API.axiosPutAPI('/manage/merchants/amount', params);
},
//修改状态
amendState: params => {
  return API.axiosPutAPI('/manage/merchants/state', params);
},
//新增商家
createMerchant: params => {
  return API.axiosPostAPI("/manage/merchants", params);
},
//编辑商家
editMerchant: params => {
  return API.axiosPutAPI("/manage/merchants", params);
},
//商家详情
merchantDetail : url => {
  return API.axiosGetAPI(url);
},
//商家网点
branchsList: (url, params) => {
  return API.axiosGetAPI(url, params);
},
//商家订单
orderList: (url, params) => {
  return API.axiosGetAPI(url, params);
},
//商家流水
transfersList: (url, params) => {
  return API.axiosGetAPI(url, params);
},
agencylist: (params) => {
  return API.axiosGetAPI('/manage/agents/box',params);
},
//今日新增
addlist: (params) => {
  // return API.axiosGetAPI('/manage/home/all-user',params);
},
};
